:root {
    --primary-color: #e74c3c;
    --dark-bg: #0f0f12;
    --card-bg: #1a1a1f;
    --list-item-bg: #1e1e24;
    --text-light: #f0f0f0;
    --text-gray: #a0a0a8;
    --border-color: #2d2d36;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 20px;
}

.move-section {
    padding-top: 45px;
}

 .header-area {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .page-title {
        font-size: 2.2rem;
        font-weight: 700;
        margin: 0;
    }

    .movie-count {
        color: var(--text-gray);
        font-size: 1.2rem;
        margin-left: 10px;
    }

    .control-buttons {
        display: flex;
        gap: 15px;
    }

    .control-btn {
        background-color: var(--card-bg);
        border: 1px solid var(--border-color);
        color: var(--text-light);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .control-btn:hover, .control-btn.active {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        color: white;
    }

    /* 筛选面板 */
    .filter-panel {
        background-color: var(--card-bg);
        border-radius: 10px;
        padding: 25px;
        margin-bottom: 30px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
        display: none;
    }

    .filter-panel.show {
        display: block;
    }

    .filter-section {
        margin-bottom: 20px;
    }

    .filter-title {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 12px;
        color: var(--text-light);
    }

    .filter-options {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .filter-option {
        padding: 6px 15px;
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 20px;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .filter-option:hover, .filter-option.active {
        background-color: var(--primary-color);
        color: white;
    }

    /* 排序菜单 */
    .sort-menu {
        position: absolute;
        right: 20px;
        top: 70px;
        background-color: var(--card-bg);
        border-radius: 8px;
        padding: 15px;
        width: 200px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7);
        z-index: 1000;
        display: none;
    }

    .sort-menu.show {
        display: block;
    }

    .sort-option {
        padding: 8px 10px;
        border-radius: 5px;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
    }

    .sort-option:hover, .sort-option.active {
        background-color: rgba(231, 76, 60, 0.2);
    }

    .sort-option i {
        margin-right: 8px;
        width: 20px;
        text-align: center;
    }

    .order-options {
        display: flex;
        gap: 15px;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
    }

    .order-option {
        flex: 1;
        text-align: center;
        padding: 8px;
        border-radius: 5px;
        background-color: rgba(255, 255, 255, 0.05);
        cursor: pointer;
    }

    .order-option.active {
        background-color: var(--primary-color);
    }

    /* 电影卡片模式 */
    .movies-grid {
        display: grid;
        gap: 25px;
    }

    .movie-card {
        background-color: var(--card-bg);
        border-radius: 10px;
        overflow: hidden;
        transition: all 0.3s ease;
        position: relative;
        height: 100%;
    }

    .movie-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    }

    .movie-poster {
        height: 260px; /* 增加海报高度 */
        overflow: hidden;
        position: relative;
    }

    .movie-poster img {
        width: 100%;
        height: 300px;
        object-fit: cover;
        transition: transform 0.5s;
    }

    .movie-card:hover .movie-poster img {
        transform: scale(1.05);
    }

    .resolution-badge {
        position: absolute;
        bottom: 10px;
        right: 10px;
        background-color: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 0.8rem;
    }

    .movie-info {
        padding: 15px;
    }

    .movie-title {
        font-size: 1.1rem; /* 增加标题大小 */
        font-weight: 600;
        margin-bottom: 5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .movie-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.95rem; /* 增加元数据大小 */
        color: var(--text-gray);
        margin-top: 5px;
    }

    .movie-year {
        font-size: 0.9rem;
    }

    .movie-rating {
        color: #ffc107;
        font-weight: 600;
        font-size: 1rem; /* 增加评分大小 */
    }

    /* 电影列表模式 */
    .movies-list {
        display: none;
    }

    .list-item {
        display: flex;
        background-color: var(--list-item-bg);
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 15px;
        transition: all 0.3s ease;
    }

    .list-item:hover {
        transform: translateX(5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    }

    .list-poster {
        width: 100px;
        height: 140px;
        overflow: hidden;
    }

    .list-poster img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .list-content {
        flex: 1;
        padding: 15px;
        display: flex;
        flex-direction: column;
    }

    .list-title {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 5px;
    }

    .list-meta {
        display: flex;
        gap: 15px;
        margin-bottom: 10px;
        font-size: 0.85rem;
        color: var(--text-gray);
        align-items: center;
    }

    .list-rating {
        color: #ffc107;
        font-weight: 600;
    }

    .list-description {
        color: var(--text-gray);
        font-size: 0.85rem;
        line-height: 1.5;
        flex-grow: 1;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 10px;
    }

    .list-actions {
        display: flex;
        gap: 10px;
    }

    .action-btn {
        padding: 5px 15px;
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
        font-size: 0.85rem;
        transition: all 0.3s ease;
    }

    .action-btn:hover {
        background-color: var(--primary-color);
        color: white;
    }

    /* 响应式设计 - 大屏幕调整为6列 */
    @media (min-width: 1600px) {
        .movies-grid {
            grid-template-columns: repeat(6, 1fr);
        }
    }

    @media (max-width: 1599px) and (min-width: 1400px) {
        .movies-grid {
            grid-template-columns: repeat(5, 1fr);
        }
    }

    @media (max-width: 1399px) and (min-width: 1200px) {
        .movies-grid {
            grid-template-columns: repeat(4, 1fr);
        }
    }

    @media (max-width: 1199px) and (min-width: 992px) {
        .movies-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    @media (max-width: 991px) {
        .movies-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .header-area {
            flex-direction: column;
            align-items: flex-start;
            gap: 15px;
        }
    }

    @media (max-width: 767px) {
        .list-item {
            flex-direction: column;
        }

        .list-poster {
            width: 100%;
            height: 180px;
        }
    }

    @media (max-width: 575px) {
        .movies-grid {
            grid-template-columns: 1fr;
        }
    }